Skip to content

fix(frontend): cap sidebar banner queue#4724

Open
mmabrouk wants to merge 1 commit into
mainfrom
fix/sidebar-banner-cap
Open

fix(frontend): cap sidebar banner queue#4724
mmabrouk wants to merge 1 commit into
mainfrom
fix/sidebar-banner-cap

Conversation

@mmabrouk

Copy link
Copy Markdown
Member

Context

A new or localStorage-cleared user could close a sidebar banner and keep seeing older changelog cards. The sidebar rendered one card at a time, but every entry in changelog.json was still in the dismissible queue, so closing one revealed the next until all six were cleared.

Changes

The sidebar banner atom now caps dismissible candidates to two before dismissal filtering. The cap happens before localStorage dismissal state is applied, so older changelog entries do not backfill after the first two dismissible cards are closed. Non-dismissible banners remain eligible.

Tests / notes

  • Ran pnpm lint-fix in web.
  • Ran git diff --check -- web/oss/src/components/SidebarBanners/state/atoms.ts.

What to QA

  • Clear agenta:dismissed-banners, open Agenta with the sidebar expanded, and dismiss the sidebar banners. After two dismissible sidebar banners are closed, older changelog cards should not continue appearing.
  • Regression: free trial or other non-dismissible sidebar banners should still render when their billing state applies.

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jun 17, 2026 6:26pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 382c4882-54b4-43d3-8ccb-101ce85fc8dd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/sidebar-banner-cap

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mmabrouk mmabrouk requested a review from ashrafchowdury June 17, 2026 18:26
@mmabrouk mmabrouk marked this pull request as ready for review June 17, 2026 18:26
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-production-f384.up.railway.app/w
Project agenta-oss-pr-4724
Image tag pr-4724-998adca
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-06-17T18:42:39.958Z

@ardaerzin ardaerzin self-requested a review June 17, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants